package com.yudongyang.util;

import java.util.Date;

public class getAge {
//计算年龄
	public static Integer getAge(Date birthday) {
		int age=0;
		Date date = new Date();
		int year = date.getYear();
		int year2 = birthday.getYear();
		
			age=year-year2;
		
		
		
		
		return age;
	}
}
